package net.pimpas.security.serviceprovider.auth.login.callback.name;

import net.pimpas.security.serviceprovider.auth.login.callback.Callback;

public class NameCallback implements Callback {

	private String prompt;
	private String defaultName;
	private String inputName;

	public NameCallback(String prompt) {
		if (prompt == null || prompt.length() == 0)
			throw new IllegalArgumentException();

		this.setPrompt(prompt);
	}

	public NameCallback(String prompt, String defaultName) {
		this(prompt);
		if (defaultName == null || defaultName.length() == 0)
			throw new IllegalArgumentException();

		this.setPrompt(prompt);
		this.setDefaultName(defaultName);
	}

	public String getDefaultName() {
		return defaultName;
	}
	public void setDefaultName(String defaultName) {
		this.defaultName = defaultName;
	}
	public String getInputName() {
		return inputName;
	}
	public void setInputName(String inputName) {
		this.inputName = inputName;
	}
	public String getPrompt() {
		return prompt;
	}
	public void setPrompt(String prompt) {
		this.prompt = prompt;
	}
}